<%@ tag language="java" pageEncoding="UTF-8"%>
<%@ include file="/commons/taglib.jsp"%>
<%@ attribute name="id" type="java.lang.String" required="true" description="编号"%>
<%@ attribute name="name" type="java.lang.String" required="true" description="名称"%>
<%@ attribute name="typeCode" type="java.lang.String" required="true" description="字典类型"%>
<%@ attribute name="value" type="java.lang.String" required="false" description="选择值"%>
<%@ attribute name="onchange" type="java.lang.String" required="false" description="改变事件" %>
<select class="form-control m-b" id="${id}" name="${name}" onchange="${onchange }">
	<c:forEach items="${fns:getDictList(typeCode)}" var="dict">
		<option value="${dict.typeValue }" <c:if test="${ dict.typeValue eq value}"> selected </c:if>>${dict.typeName }</option>
	</c:forEach>
</select>
